package com.lebang.domain;

import com.lebang.model.MyConfig;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * cences_core_data
 * @author 
 */
@Data
@ApiModel("")
public class CencesCoreData implements Serializable {
    /**
     * id
     */
    @ApiModelProperty("id")
    private Integer id;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private LocalDate createTime;

    /**
     * 记录日期
     */
    @ApiModelProperty("记录日期")
    private Integer time;

    /**
     * 渠道
     */
    @ApiModelProperty("渠道")
    private String appStore;

    /**
     * appId
     */
    @ApiModelProperty("appId")
    private Integer appId;

    /**
     * 新增用户数
     */
    @ApiModelProperty("新增用户数")
    private Integer increaseMember;

    /**
     * 注册用户
     */
    @ApiModelProperty("注册用户")
    private Integer registerMember;

    /**
     * 活跃用户
     */
    @ApiModelProperty("活跃用户")
    private Integer activeMember;

    /**
     * 注册率
     */
    @ApiModelProperty("注册率")
    private BigDecimal registerRate;

    /**
     * sdk营收
     */
    @ApiModelProperty("sdk营收")
    private BigDecimal sdkProfit;

    /**
     * 截图营收
     */
    @ApiModelProperty("截图营收")
    private BigDecimal commonProfit;

    /**
     * 提现支出
     */
    @ApiModelProperty("提现支出")
    private BigDecimal cashOutput;

    /**
     * 有效用户数
     */
    @ApiModelProperty("有效用户数")
    private Integer effectMember;

    /**
     * 完成任务数
     */
    @ApiModelProperty("完成任务数")
    private Integer finishTaskNun;

    /**
     * 有效用户转化率
     */
    @ApiModelProperty("有效用户转化率")
    private BigDecimal effectMemberRate;

    public CencesCoreData( Integer time, String appStore) {
        this.createTime = LocalDate.now();
        this.time = time;
        this.appStore = appStore;
        this.appId = MyConfig.getEnv();
        this.increaseMember = 0;
        this.registerMember = 0;
        this.activeMember = 0;
        this.registerRate = BigDecimal.ZERO;
        this.sdkProfit = BigDecimal.ZERO;
        this.commonProfit = BigDecimal.ZERO;
        this.cashOutput = BigDecimal.ZERO;
        this.effectMember = 0;
        this.finishTaskNun = 0;
        this.effectMemberRate = BigDecimal.ZERO;
    }

    private static final long serialVersionUID = 1L;
}